package service

import (
	"gin-vben-admin/internal/repository"
	"gin-vben-admin/pkg/jwt"
	"go.uber.org/zap"
)

type Config struct {
	OpenCaptcha bool `help:"开启验证码" default:"true" `
}

type Service struct {
	config *Config
	logger *zap.Logger
	jwt    *jwt.JWT
	tm     repository.Transaction
}

func NewService(conf *Config, tm repository.Transaction, logger *zap.Logger, jwt *jwt.JWT) *Service {
	return &Service{
		config: conf,
		logger: logger,
		jwt:    jwt,
		tm:     tm,
	}
}
